Other Categories
NSExpression(MGLAdditions)
@interface NSExpression (MGLAdditions)
                        Methods for creating expressions that use Mapbox-specific functionality and for converting to and from the JSON format defined in the Mapbox Style Specification.
Creating Variable Expressions
- 
                            
zoomLevelVariableExpression
NSExpressionvariable that corresponds to thezoomexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull zoomLevelVariableExpression;Swift
class var zoomLevelVariable: NSExpression { get } - 
                            
heatmapDensityVariableExpression
NSExpressionvariable that corresponds to theheatmap-densityexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull heatmapDensityVariableExpression;Swift
class var heatmapDensityVariable: NSExpression { get } - 
                            
lineProgressVariableExpression
NSExpressionvariable that corresponds to theline-progressexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull lineProgressVariableExpression;Swift
class var lineProgressVariable: NSExpression { get } - 
                            
geometryTypeVariableExpression
NSExpressionvariable that corresponds to thegeometry-typeexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull geometryTypeVariableExpression;Swift
class var geometryTypeVariable: NSExpression { get } - 
                            
featureIdentifierVariableExpression
NSExpressionvariable that corresponds to theidexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull featureIdentifierVariableExpression;Swift
class var featureIdentifierVariable: NSExpression { get } - 
                            
featureAccumulatedVariableExpression
NSExpressionvariable that corresponds to theidexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull featureAccumulatedVariableExpression;Swift
class var featureAccumulatedVariable: NSExpression { get } - 
                            
featureAttributesVariableExpression
NSExpressionvariable that corresponds to thepropertiesexpression operator in the Mapbox Style Specification.Declaration
Objective-C
@property (class, nonatomic, readonly) NSExpression *_Nonnull featureAttributesVariableExpression;Swift
class var featureAttributesVariable: NSExpression { get } 
Creating Conditional Expressions
- 
                            
+mgl_expressionForConditional:trueExpression:falseExpresssion:
Returns a conditional function expression specifying the string predicate, and expressions for each condition.
Declaration
Objective-C
+ (nonnull instancetype) mgl_expressionForConditional:(nonnull NSPredicate *)conditionPredicate trueExpression:(nonnull NSExpression *)trueExpression falseExpresssion:(nonnull NSExpression *)falseExpression;Swift
convenience init(forMGLConditional conditionPredicate: NSPredicate, trueExpression: NSExpression, falseExpression: NSExpression)Parameters
conditionPredicateThe predicate to get evaluated.
trueExpressionThe expression for conditions equal to true.
falseExpressionThe expression for conditions equal to false.
 
- 
                            
+mgl_expressionForSteppingExpression:fromExpression:stops:
Returns a step function expression specifying the stepping, from expression and stops.
Related examples
See the Data-driven circles, Cluster point data, and Use images to cluster point data examples to learn how to use this expression to style a map layer based on an attribute value.
Declaration
Objective-C
+ (nonnull instancetype) mgl_expressionForSteppingExpression: (nonnull NSExpression *)steppingExpression fromExpression: (nonnull NSExpression *)minimumExpression stops:(nonnull NSExpression *)stops;Swift
convenience init(forMGLStepping steppingExpression: NSExpression, from minimumExpression: NSExpression, stops: NSExpression)Parameters
steppingExpressionThe stepping expression.
minimumExpressionThe expression which could be a constant or function expression.
stopsThe stops must be an
NSDictionaryconstantNSExpression. - 
                            
+mgl_expressionForInterpolatingExpression:withCurveType:parameters:stops:
Returns an interpolated function expression specifying the function operator, curve type, parameters and steps.
Related examples
See the Create a heatmap layer example to learn how to style an
MGLHeatmapStyleLayerbased on zoom level and point density with this expression.Declaration
Objective-C
+ (nonnull instancetype) mgl_expressionForInterpolatingExpression: (nonnull NSExpression *)inputExpression withCurveType: (nonnull MGLExpressionInterpolationMode) curveType parameters:(nullable NSExpression *)parameters stops:(nonnull NSExpression *)stops;Swift
convenience init(forMGLInterpolating inputExpression: NSExpression, curveType: MGLExpressionInterpolationMode, parameters: NSExpression?, stops: NSExpression)Parameters
inputExpressionThe interpolating expression input.
curveTypeThe curve type could be
MGLExpressionInterpolationModeLinear,MGLExpressionInterpolationModeExponentialandMGLExpressionInterpolationModeCubicBezier.parametersThe parameters expression.
stopsThe stops expression.
 - 
                            
+mgl_expressionForMatchingExpression:inDictionary:defaultExpression:
Returns a match function expression specifying the input, matching values, and default value.
Declaration
Objective-C
+ (nonnull instancetype) mgl_expressionForMatchingExpression:(nonnull NSExpression *)inputExpression inDictionary:(nonnull NSDictionary<NSExpression *, NSExpression *> *) matchedExpressions defaultExpression: (nonnull NSExpression *)defaultExpression;Swift
convenience init(forMGLMatchingKey inputExpression: NSExpression, in matchedExpressions: [NSExpression : NSExpression], default defaultExpression: NSExpression)Parameters
inputExpressionThe matching expression.
matchedExpressionsThe matched values expression dictionary must be condition : value.
defaultExpressionThe defaultValue expression to be used in case there is no match.
 - 
                            
+mgl_expressionForAttributedExpressions:
Returns an attributed function expression specifying an
MGLAttributedExpressionconstant expression array.Declaration
Objective-C
+ (nonnull instancetype)mgl_expressionForAttributedExpressions: (nonnull NSArray<NSExpression *> *)attributedExpressions;Swift
convenience init(forAttributedExpressions attributedExpressions: [NSExpression])Parameters
attributedExpressionsThe
MGLAttributedExpressionconstant expression array. 
Concatenating String Expressions
- 
                            
-mgl_expressionByAppendingExpression:
Returns a constant expression appending the passed expression.
Note
Both the receiver and the given expression must be an
NSStringconstant expression type; otherwise, an exception is rised.Declaration
Objective-C
- (nonnull instancetype)mgl_expressionByAppendingExpression: (nonnull NSExpression *)expression;Swift
func mgl_appending(_ expression: NSExpression) -> SelfParameters
expressionThe expression to append to the receiver.
 
Converting JSON Expressions
- 
                            
+expressionWithMGLJSONObject:
Returns an expression equivalent to the given Foundation object deserialized from JSON data.
The Foundation object is interpreted according to the Mapbox Style Specification. See the “Information for Style Authors” guide for a correspondence of operators and types between the style specification and the
NSExpressionrepresentation used by this SDK.Declaration
Objective-C
+ (nonnull instancetype)expressionWithMGLJSONObject:(nonnull id)object;Swift
convenience init(mglJSONObject object: Any)Parameters
objectA Foundation object deserialized from JSON data, for example using
NSJSONSerialization.Return Value
An initialized expression equivalent to
object, suitable for use as the value of a style layer attribute. - 
                            
mgl_jsonExpressionObject
An equivalent Foundation object that can be serialized as JSON.
The Foundation object conforms to the Mapbox Style Specification. See the “Information for Style Authors” guide for a correspondence of operators and types between the style specification and the
NSExpressionrepresentation used by this SDK.You can use
NSJSONSerializationto serialize the Foundation object as data to write to a file.Declaration
Objective-C
@property (nonatomic, readonly) id _Nonnull mgl_jsonExpressionObject;Swift
var mgl_jsonExpressionObject: Any { get } 
Localizing the Expression
- 
                            
-mgl_expressionLocalizedIntoLocale:
Returns a copy of the receiver localized into the given locale.
This method assumes the receiver refers to the feature attributes that are available in vector tiles supplied by the Mapbox Streets source. On iOS, the user can set the system’s preferred language in Settings, General Settings, Language & Region. On macOS, the user can set the system’s preferred language in the Language & Region pane of System Preferences.
Declaration
Objective-C
- (nonnull NSExpression *)mgl_expressionLocalizedIntoLocale: (nullable NSLocale *)locale;Swift
func mgl_expressionLocalized(into locale: Locale?) -> NSExpressionParameters
localeThe locale into which labels should be localized. To use the system’s preferred language, if supported, specify
nil. To use the local language, specify a locale with the identifiermul. 
NSValue(MGLAdditions)
@interface NSValue (MGLAdditions)
                        Methods for round-tripping values for Mapbox-defined types.
Working with Geographic Coordinate Values
- 
                            
+valueWithMGLCoordinate:
Creates a new value object containing the specified Core Location geographic coordinate structure.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCoordinate: (CLLocationCoordinate2D)coordinate;Swift
convenience init(mglCoordinate coordinate: CLLocationCoordinate2D)Parameters
coordinateThe value for the new object.
Return Value
A new value object that contains the geographic coordinate information.
 - 
                            
MGLCoordinateValue
The Core Location geographic coordinate structure representation of the value.
Declaration
Objective-C
@property (readonly) CLLocationCoordinate2D MGLCoordinateValue;Swift
var mglCoordinateValue: CLLocationCoordinate2D { get } - 
                            
+valueWithMGLMapPoint:
Creates a new value object containing the specified Mapbox map point structure.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLMapPoint:(MGLMapPoint)point;Swift
convenience init(mglMapPoint point: MGLMapPoint)Parameters
pointThe value for the new object.
Return Value
A new value object that contains the coordinate and zoom level information.
 - 
                            
MGLMapPointValue
The Mapbox map point structure representation of the value.
Declaration
Objective-C
@property (readonly) MGLMapPoint MGLMapPointValue;Swift
var mglMapPointValue: MGLMapPoint { get } - 
                            
+valueWithMGLCoordinateSpan:
Creates a new value object containing the specified Mapbox coordinate span structure.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCoordinateSpan:(MGLCoordinateSpan)span;Swift
convenience init(mglCoordinateSpan span: MGLCoordinateSpan)Parameters
spanThe value for the new object.
Return Value
A new value object that contains the coordinate span information.
 - 
                            
MGLCoordinateSpanValue
The Mapbox coordinate span structure representation of the value.
Declaration
Objective-C
@property (readonly) MGLCoordinateSpan MGLCoordinateSpanValue;Swift
var mglCoordinateSpanValue: MGLCoordinateSpan { get } - 
                            
+valueWithMGLCoordinateBounds:
Creates a new value object containing the specified Mapbox coordinate bounds structure.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCoordinateBounds: (MGLCoordinateBounds)bounds;Swift
convenience init(mglCoordinateBounds bounds: MGLCoordinateBounds)Parameters
boundsThe value for the new object.
Return Value
A new value object that contains the coordinate bounds information.
 - 
                            
MGLCoordinateBoundsValue
The Mapbox coordinate bounds structure representation of the value.
Declaration
Objective-C
@property (readonly) MGLCoordinateBounds MGLCoordinateBoundsValue;Swift
var mglCoordinateBoundsValue: MGLCoordinateBounds { get } - 
                            
+valueWithMGLCoordinateQuad:
Creates a new value object containing the specified Mapbox coordinate quad structure.
Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCoordinateQuad:(MGLCoordinateQuad)quad;Swift
convenience init(mglCoordinateQuad quad: MGLCoordinateQuad)Parameters
quadThe value for the new object.
Return Value
A new value object that contains the coordinate quad information.
 - 
                            
-MGLCoordinateQuadValue
The Mapbox coordinate quad structure representation of the value.
Declaration
Objective-C
- (MGLCoordinateQuad)MGLCoordinateQuadValue;Swift
func mglCoordinateQuadValue() -> MGLCoordinateQuad 
Working with Offline Map Values
- 
                            
+valueWithMGLOfflinePackProgress:
Creates a new value object containing the given
MGLOfflinePackProgressstructure.Declaration
Objective-C
+ (nonnull NSValue *)valueWithMGLOfflinePackProgress: (MGLOfflinePackProgress)progress;Swift
/*not inherited*/ init(mglOfflinePackProgress progress: MGLOfflinePackProgress)Parameters
progressThe value for the new object.
Return Value
A new value object that contains the offline pack progress information.
 - 
                            
MGLOfflinePackProgressValue
The
MGLOfflinePackProgressstructure representation of the value.Declaration
Objective-C
@property (readonly) MGLOfflinePackProgress MGLOfflinePackProgressValue;Swift
var mglOfflinePackProgressValue: MGLOfflinePackProgress { get } 
Working with Transition Values
- 
                            
+valueWithMGLTransition:
Creates a new value object containing the given
MGLTransitionstructure.Declaration
Objective-C
+ (nonnull NSValue *)valueWithMGLTransition:(MGLTransition)transition;Swift
/*not inherited*/ init(mglTransition transition: MGLTransition)Parameters
transitionThe value for the new object.
Return Value
A new value object that contains the transition information.
 - 
                            
MGLTransitionValue
The
MGLTransitionstructure representation of the value.Declaration
Objective-C
@property (readonly) MGLTransition MGLTransitionValue;Swift
var mglTransitionValue: MGLTransition { get } - 
                            
+valueWithMGLSphericalPosition:
Creates a new value object containing the given
MGLSphericalPositionstructure.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSphericalPosition: (MGLSphericalPosition)lightPosition;Swift
convenience init(mglSphericalPosition lightPosition: MGLSphericalPosition)Parameters
lightPositionThe value for the new object.
Return Value
A new value object that contains the light position information.
 - 
                            
MGLSphericalPositionValue
The
MGLSphericalPositionstructure representation of the value.Declaration
Objective-C
@property (readonly) MGLSphericalPosition MGLSphericalPositionValue;Swift
var mglSphericalPositionValue: MGLSphericalPosition { get } - 
                            
+valueWithMGLLightAnchor:
Creates a new value object containing the given
MGLLightAnchorenum.Declaration
Objective-C
+ (nonnull NSValue *)valueWithMGLLightAnchor:(MGLLightAnchor)lightAnchor;Swift
/*not inherited*/ init(mglLightAnchor lightAnchor: MGLLightAnchor)Parameters
lightAnchorThe value for the new object.
Return Value
A new value object that contains the light anchor information.
 - 
                            
MGLLightAnchorValue
The
MGLLightAnchorenum representation of the value.Declaration
Objective-C
@property (readonly) MGLLightAnchor MGLLightAnchorValue;Swift
var mglLightAnchorValue: MGLLightAnchor { get } 
NSValue(MGLCircleStyleLayerAdditions)
@interface NSValue (MGLCircleStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLCircleStyleLayer object and
                        unwrapping its raw value.
                      
Working with Circle Style Layer Attribute Values
- 
                            
+valueWithMGLCirclePitchAlignment:
Creates a new value object containing the given
MGLCirclePitchAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCirclePitchAlignment: (MGLCirclePitchAlignment)circlePitchAlignment;Swift
convenience init(mglCirclePitchAlignment circlePitchAlignment: MGLCirclePitchAlignment)Parameters
circlePitchAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLCirclePitchAlignmentValue
The
MGLCirclePitchAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLCirclePitchAlignment MGLCirclePitchAlignmentValue;Swift
var mglCirclePitchAlignmentValue: MGLCirclePitchAlignment { get } - 
                            
+valueWithMGLCircleScaleAlignment:
Creates a new value object containing the given
MGLCircleScaleAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCircleScaleAlignment: (MGLCircleScaleAlignment)circleScaleAlignment;Swift
convenience init(mglCircleScaleAlignment circleScaleAlignment: MGLCircleScaleAlignment)Parameters
circleScaleAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLCircleScaleAlignmentValue
The
MGLCircleScaleAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLCircleScaleAlignment MGLCircleScaleAlignmentValue;Swift
var mglCircleScaleAlignmentValue: MGLCircleScaleAlignment { get } - 
                            
+valueWithMGLCircleTranslationAnchor:
Creates a new value object containing the given
MGLCircleTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLCircleTranslationAnchor: (MGLCircleTranslationAnchor)circleTranslationAnchor;Swift
convenience init(mglCircleTranslationAnchor circleTranslationAnchor: MGLCircleTranslationAnchor)Parameters
circleTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLCircleTranslationAnchorValue
The
MGLCircleTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLCircleTranslationAnchor MGLCircleTranslationAnchorValue;Swift
var mglCircleTranslationAnchorValue: MGLCircleTranslationAnchor { get } 
NSValue(MGLFillExtrusionStyleLayerAdditions)
@interface NSValue (MGLFillExtrusionStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLFillExtrusionStyleLayer
                        object and unwrapping its raw value.
                      
Working with Fill extrusion Style Layer Attribute Values
- 
                            
+valueWithMGLFillExtrusionTranslationAnchor:
Creates a new value object containing the given
MGLFillExtrusionTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLFillExtrusionTranslationAnchor: (MGLFillExtrusionTranslationAnchor)fillExtrusionTranslationAnchor;Swift
convenience init(mglFillExtrusionTranslationAnchor fillExtrusionTranslationAnchor: MGLFillExtrusionTranslationAnchor)Parameters
fillExtrusionTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLFillExtrusionTranslationAnchorValue
The
MGLFillExtrusionTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLFillExtrusionTranslationAnchor MGLFillExtrusionTranslationAnchorValue;Swift
var mglFillExtrusionTranslationAnchorValue: MGLFillExtrusionTranslationAnchor { get } 
NSValue(MGLFillStyleLayerAdditions)
@interface NSValue (MGLFillStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLFillStyleLayer object and
                        unwrapping its raw value.
                      
Working with Fill Style Layer Attribute Values
- 
                            
+valueWithMGLFillTranslationAnchor:
Creates a new value object containing the given
MGLFillTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLFillTranslationAnchor: (MGLFillTranslationAnchor)fillTranslationAnchor;Swift
convenience init(mglFillTranslationAnchor fillTranslationAnchor: MGLFillTranslationAnchor)Parameters
fillTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLFillTranslationAnchorValue
The
MGLFillTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLFillTranslationAnchor MGLFillTranslationAnchorValue;Swift
var mglFillTranslationAnchorValue: MGLFillTranslationAnchor { get } 
NSValue(MGLHillshadeStyleLayerAdditions)
@interface NSValue (MGLHillshadeStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLHillshadeStyleLayer object
                        and unwrapping its raw value.
                      
Working with Hillshade Style Layer Attribute Values
- 
                            
+valueWithMGLHillshadeIlluminationAnchor:
Creates a new value object containing the given
MGLHillshadeIlluminationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLHillshadeIlluminationAnchor: (MGLHillshadeIlluminationAnchor)hillshadeIlluminationAnchor;Swift
convenience init(mglHillshadeIlluminationAnchor hillshadeIlluminationAnchor: MGLHillshadeIlluminationAnchor)Parameters
hillshadeIlluminationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLHillshadeIlluminationAnchorValue
The
MGLHillshadeIlluminationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLHillshadeIlluminationAnchor MGLHillshadeIlluminationAnchorValue;Swift
var mglHillshadeIlluminationAnchorValue: MGLHillshadeIlluminationAnchor { get } 
NSValue(MGLLineStyleLayerAdditions)
@interface NSValue (MGLLineStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLLineStyleLayer object and
                        unwrapping its raw value.
                      
Working with Line Style Layer Attribute Values
- 
                            
+valueWithMGLLineCap:
Creates a new value object containing the given
MGLLineCapenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLLineCap:(MGLLineCap)lineCap;Swift
convenience init(mglLineCap lineCap: MGLLineCap)Parameters
lineCapThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLLineCapValue
The
MGLLineCapenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLLineCap MGLLineCapValue;Swift
var mglLineCapValue: MGLLineCap { get } - 
                            
+valueWithMGLLineJoin:
Creates a new value object containing the given
MGLLineJoinenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLLineJoin:(MGLLineJoin)lineJoin;Swift
convenience init(mglLineJoin lineJoin: MGLLineJoin)Parameters
lineJoinThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLLineJoinValue
The
MGLLineJoinenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLLineJoin MGLLineJoinValue;Swift
var mglLineJoinValue: MGLLineJoin { get } - 
                            
+valueWithMGLLineTranslationAnchor:
Creates a new value object containing the given
MGLLineTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLLineTranslationAnchor: (MGLLineTranslationAnchor)lineTranslationAnchor;Swift
convenience init(mglLineTranslationAnchor lineTranslationAnchor: MGLLineTranslationAnchor)Parameters
lineTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLLineTranslationAnchorValue
The
MGLLineTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLLineTranslationAnchor MGLLineTranslationAnchorValue;Swift
var mglLineTranslationAnchorValue: MGLLineTranslationAnchor { get } 
NSValue(MGLRasterStyleLayerAdditions)
@interface NSValue (MGLRasterStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLRasterStyleLayer object and
                        unwrapping its raw value.
                      
Working with Raster Style Layer Attribute Values
- 
                            
+valueWithMGLRasterResamplingMode:
Creates a new value object containing the given
MGLRasterResamplingModeenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLRasterResamplingMode: (MGLRasterResamplingMode)rasterResamplingMode;Swift
convenience init(mglRasterResamplingMode rasterResamplingMode: MGLRasterResamplingMode)Parameters
rasterResamplingModeThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLRasterResamplingModeValue
The
MGLRasterResamplingModeenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLRasterResamplingMode MGLRasterResamplingModeValue;Swift
var mglRasterResamplingModeValue: MGLRasterResamplingMode { get } 
NSValue(MGLSymbolStyleLayerAdditions)
@interface NSValue (MGLSymbolStyleLayerAdditions)
                        Methods for wrapping an enumeration value for a style layer attribute in an
                        MGLSymbolStyleLayer object and
                        unwrapping its raw value.
                      
Working with Symbol Style Layer Attribute Values
- 
                            
+valueWithMGLIconAnchor:
Creates a new value object containing the given
MGLIconAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconAnchor:(MGLIconAnchor)iconAnchor;Swift
convenience init(mglIconAnchor iconAnchor: MGLIconAnchor)Parameters
iconAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLIconAnchorValue
The
MGLIconAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconAnchor MGLIconAnchorValue;Swift
var mglIconAnchorValue: MGLIconAnchor { get } - 
                            
+valueWithMGLIconPitchAlignment:
Creates a new value object containing the given
MGLIconPitchAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconPitchAlignment: (MGLIconPitchAlignment)iconPitchAlignment;Swift
convenience init(mglIconPitchAlignment iconPitchAlignment: MGLIconPitchAlignment)Parameters
iconPitchAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLIconPitchAlignmentValue
The
MGLIconPitchAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconPitchAlignment MGLIconPitchAlignmentValue;Swift
var mglIconPitchAlignmentValue: MGLIconPitchAlignment { get } - 
                            
+valueWithMGLIconRotationAlignment:
Creates a new value object containing the given
MGLIconRotationAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconRotationAlignment: (MGLIconRotationAlignment)iconRotationAlignment;Swift
convenience init(mglIconRotationAlignment iconRotationAlignment: MGLIconRotationAlignment)Parameters
iconRotationAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLIconRotationAlignmentValue
The
MGLIconRotationAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconRotationAlignment MGLIconRotationAlignmentValue;Swift
var mglIconRotationAlignmentValue: MGLIconRotationAlignment { get } - 
                            
+valueWithMGLIconTextFit:
Creates a new value object containing the given
MGLIconTextFitenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTextFit:(MGLIconTextFit)iconTextFit;Swift
convenience init(mglIconTextFit iconTextFit: MGLIconTextFit)Parameters
iconTextFitThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLIconTextFitValue
The
MGLIconTextFitenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconTextFit MGLIconTextFitValue;Swift
var mglIconTextFitValue: MGLIconTextFit { get } - 
                            
+valueWithMGLSymbolPlacement:
Creates a new value object containing the given
MGLSymbolPlacementenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolPlacement: (MGLSymbolPlacement)symbolPlacement;Swift
convenience init(mglSymbolPlacement symbolPlacement: MGLSymbolPlacement)Parameters
symbolPlacementThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLSymbolPlacementValue
The
MGLSymbolPlacementenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLSymbolPlacement MGLSymbolPlacementValue;Swift
var mglSymbolPlacementValue: MGLSymbolPlacement { get } - 
                            
+valueWithMGLSymbolZOrder:
Creates a new value object containing the given
MGLSymbolZOrderenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLSymbolZOrder:(MGLSymbolZOrder)symbolZOrder;Swift
convenience init(mglSymbolZOrder symbolZOrder: MGLSymbolZOrder)Parameters
symbolZOrderThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLSymbolZOrderValue
The
MGLSymbolZOrderenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLSymbolZOrder MGLSymbolZOrderValue;Swift
var mglSymbolZOrderValue: MGLSymbolZOrder { get } - 
                            
+valueWithMGLTextAnchor:
Creates a new value object containing the given
MGLTextAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextAnchor:(MGLTextAnchor)textAnchor;Swift
convenience init(mglTextAnchor textAnchor: MGLTextAnchor)Parameters
textAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextAnchorValue
The
MGLTextAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextAnchor MGLTextAnchorValue;Swift
var mglTextAnchorValue: MGLTextAnchor { get } - 
                            
+valueWithMGLTextJustification:
Creates a new value object containing the given
MGLTextJustificationenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextJustification: (MGLTextJustification)textJustification;Swift
convenience init(mglTextJustification textJustification: MGLTextJustification)Parameters
textJustificationThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextJustificationValue
The
MGLTextJustificationenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextJustification MGLTextJustificationValue;Swift
var mglTextJustificationValue: MGLTextJustification { get } - 
                            
+valueWithMGLTextPitchAlignment:
Creates a new value object containing the given
MGLTextPitchAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextPitchAlignment: (MGLTextPitchAlignment)textPitchAlignment;Swift
convenience init(mglTextPitchAlignment textPitchAlignment: MGLTextPitchAlignment)Parameters
textPitchAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextPitchAlignmentValue
The
MGLTextPitchAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextPitchAlignment MGLTextPitchAlignmentValue;Swift
var mglTextPitchAlignmentValue: MGLTextPitchAlignment { get } - 
                            
+valueWithMGLTextRotationAlignment:
Creates a new value object containing the given
MGLTextRotationAlignmentenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextRotationAlignment: (MGLTextRotationAlignment)textRotationAlignment;Swift
convenience init(mglTextRotationAlignment textRotationAlignment: MGLTextRotationAlignment)Parameters
textRotationAlignmentThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextRotationAlignmentValue
The
MGLTextRotationAlignmentenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextRotationAlignment MGLTextRotationAlignmentValue;Swift
var mglTextRotationAlignmentValue: MGLTextRotationAlignment { get } - 
                            
+valueWithMGLTextTransform:
Creates a new value object containing the given
MGLTextTransformenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTransform: (MGLTextTransform)textTransform;Swift
convenience init(mglTextTransform textTransform: MGLTextTransform)Parameters
textTransformThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextTransformValue
The
MGLTextTransformenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextTransform MGLTextTransformValue;Swift
var mglTextTransformValue: MGLTextTransform { get } - 
                            
+valueWithMGLTextWritingMode:
Creates a new value object containing the given
MGLTextWritingModeenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextWritingMode: (MGLTextWritingMode)textWritingModes;Swift
convenience init(mglTextWritingMode textWritingModes: MGLTextWritingMode)Parameters
textWritingModesThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextWritingModeValue
The
MGLTextWritingModeenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextWritingMode MGLTextWritingModeValue;Swift
var mglTextWritingModeValue: MGLTextWritingMode { get } - 
                            
+valueWithMGLIconTranslationAnchor:
Creates a new value object containing the given
MGLIconTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLIconTranslationAnchor: (MGLIconTranslationAnchor)iconTranslationAnchor;Swift
convenience init(mglIconTranslationAnchor iconTranslationAnchor: MGLIconTranslationAnchor)Parameters
iconTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLIconTranslationAnchorValue
The
MGLIconTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLIconTranslationAnchor MGLIconTranslationAnchorValue;Swift
var mglIconTranslationAnchorValue: MGLIconTranslationAnchor { get } - 
                            
+valueWithMGLTextTranslationAnchor:
Creates a new value object containing the given
MGLTextTranslationAnchorenumeration.Declaration
Objective-C
+ (nonnull instancetype)valueWithMGLTextTranslationAnchor: (MGLTextTranslationAnchor)textTranslationAnchor;Swift
convenience init(mglTextTranslationAnchor textTranslationAnchor: MGLTextTranslationAnchor)Parameters
textTranslationAnchorThe value for the new object.
Return Value
A new value object that contains the enumeration value.
 - 
                            
MGLTextTranslationAnchorValue
The
MGLTextTranslationAnchorenumeration representation of the value.Declaration
Objective-C
@property (readonly) MGLTextTranslationAnchor MGLTextTranslationAnchorValue;Swift
var mglTextTranslationAnchorValue: MGLTextTranslationAnchor { get }